const KoaRouter = require("@koa/router")
const commentController = require("../controller/comment.controller")
const { authorVerify } = require("../middleware/login.middleware")

const commentRouter = new KoaRouter({ prefix: "/comment" })

// 增：新增评论
commentRouter.post("/", authorVerify, commentController.create)
// 增：回复评论
commentRouter.post("/reply", authorVerify, commentController.replay)
// 删：删除评论

module.exports = commentRouter
